<?php
/**
 * Helper for html functions
 *
 * @version $Id: helper.php 2010-03-09 08:28:06 svn $
 * @author Fernando Correa da Conceição
 * @license GNU/GPL
 *
 * /administrator/com_jhtraq/helpers/html.php
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

/**
 * jhtraq Helper
 *
 * @package Joomla
 * @subpackage jhtraq
 * @since 1.5
 * @TODO Clean up some unneeded garbage!
 */
class HTMLHelper {
	public static function select($options, $selected) {
		$answer = '';
		foreach($options as $key=>$value) {
			$sel = "";
			if ($key == $selected) {
				$sel = ' SELECTED="SELECTED" ';
			}
			$answer .= "<option value=\"$key\" $sel>$value";
		}
		return($answer);
	}
}